3.38 \(\int \sec ^3(c+d x) (a \cos (c+d x)+b \sin (c+d x)) \, dx\)

Optimal. Leaf size=28 \[ \frac{a \tan (c+d x)}{d}+\frac{b \sec ^2(c+d x)}{2 d} \]

[Out]

(b*Sec[c + d*x]^2)/(2*d) + (a*Tan[c + d*x])/d

________________________________________________________________________________________

Rubi [A]  time = 0.0578926, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {3090, 3767, 8, 2606, 30} \[ \frac{a \tan (c+d x)}{d}+\frac{b \sec ^2(c+d x)}{2 d} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^3*(a*Cos[c + d*x] + b*Sin[c + d*x]),x]

[Out]

(b*Sec[c + d*x]^2)/(2*d) + (a*Tan[c + d*x])/d

Rule 3090

Int[cos[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_.), x_Sym
bol] :> Int[ExpandTrig[cos[c + d*x]^m*(a*cos[c + d*x] + b*sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d}, x] &&
 IntegerQ[m] && IGtQ[n, 0]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2606

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin{align*} \int \sec ^3(c+d x) (a \cos (c+d x)+b \sin (c+d x)) \, dx &=\int \left (a \sec ^2(c+d x)+b \sec ^2(c+d x) \tan (c+d x)\right ) \, dx\\ &=a \int \sec ^2(c+d x) \, dx+b \int \sec ^2(c+d x) \tan (c+d x) \, dx\\ &=-\frac{a \operatorname{Subst}(\int 1 \, dx,x,-\tan (c+d x))}{d}+\frac{b \operatorname{Subst}(\int x \, dx,x,\sec (c+d x))}{d}\\ &=\frac{b \sec ^2(c+d x)}{2 d}+\frac{a \tan (c+d x)}{d}\\ \end{align*}

Mathematica [A]  time = 0.0133589, size = 28, normalized size = 1. \[ \frac{a \tan (c+d x)}{d}+\frac{b \sec ^2(c+d x)}{2 d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^3*(a*Cos[c + d*x] + b*Sin[c + d*x]),x]

[Out]

(b*Sec[c + d*x]^2)/(2*d) + (a*Tan[c + d*x])/d

________________________________________________________________________________________

Maple [A]  time = 0.072, size = 25, normalized size = 0.9 \begin{align*}{\frac{1}{d} \left ( a\tan \left ( dx+c \right ) +{\frac{b}{2\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^3*(a*cos(d*x+c)+b*sin(d*x+c)),x)

[Out]

1/d*(a*tan(d*x+c)+1/2*b/cos(d*x+c)^2)

________________________________________________________________________________________

Maxima [A]  time = 1.05665, size = 41, normalized size = 1.46 \begin{align*} \frac{2 \, a \tan \left (d x + c\right ) - \frac{b}{\sin \left (d x + c\right )^{2} - 1}}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3*(a*cos(d*x+c)+b*sin(d*x+c)),x, algorithm="maxima")

[Out]

1/2*(2*a*tan(d*x + c) - b/(sin(d*x + c)^2 - 1))/d

________________________________________________________________________________________

Fricas [A]  time = 0.456184, size = 81, normalized size = 2.89 \begin{align*} \frac{2 \, a \cos \left (d x + c\right ) \sin \left (d x + c\right ) + b}{2 \, d \cos \left (d x + c\right )^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3*(a*cos(d*x+c)+b*sin(d*x+c)),x, algorithm="fricas")

[Out]

1/2*(2*a*cos(d*x + c)*sin(d*x + c) + b)/(d*cos(d*x + c)^2)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \cos{\left (c + d x \right )} + b \sin{\left (c + d x \right )}\right ) \sec ^{3}{\left (c + d x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**3*(a*cos(d*x+c)+b*sin(d*x+c)),x)

[Out]

Integral((a*cos(c + d*x) + b*sin(c + d*x))*sec(c + d*x)**3, x)

________________________________________________________________________________________

Giac [A]  time = 1.15837, size = 34, normalized size = 1.21 \begin{align*} \frac{b \tan \left (d x + c\right )^{2} + 2 \, a \tan \left (d x + c\right )}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3*(a*cos(d*x+c)+b*sin(d*x+c)),x, algorithm="giac")

[Out]

1/2*(b*tan(d*x + c)^2 + 2*a*tan(d*x + c))/d